package com.woniu.his.mms.common;


import com.woniu.his.result.ResultCode;

public enum MmsResultCode implements ResultCode {

    DEMO_CODE(300, "DEMO_CODE 请删除"),
    DRUG_TYPE_NOT_EXIST(3001,"药品类型不存"),
    DRUG_DOSAGE_NOT_EXIST(3002,"药品剂型不存"),
    DRUG_DOSAGE_IS_EXIST(3003,"药品剂型已存"),
    DRUG_IS_EXIST(3003,"药品已存"),
    DRUG_STATUS_OFF(5001,"药品状态不可用"),
    DRUG_NOT_EXISTS(5002, "部分药品不存在"),
    DRUG_NOT_EXIST(3003,"药品不存在"),

    DRUG_DELETED(5003,"处方已被作废"),
    PRESCRIPTION_NOT_EXISTS(5004,"处方不存在"),
    PRESCRIPTION_ALREADY_EXISTS(5005,"药方已经存在"),
    PRESCRIPTION_TOO_MANY_DRUG(5006,"处方开药种类过多，不能超过五种")


    ;

    private int code;
    private String message;

    private MmsResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}
